﻿<!DOCTYPE HTML>
<html>
<head>
    <title>Kylinbit</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="Shell/assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
    <link href="Shell/assets/css/bui-min.css" rel="stylesheet" type="text/css" />
    <link href="Shell/assets/css/main-min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="header">
    <div class="dl-title">Welcome to Kylinbit</div>
    <div class="dl-log">当前用户：
		<span class="dl-log-user">root</span>
		<a href="/chinapost/index.php?m=Public&a=logout" title="更改密码" class="dl-log-quit">[更改密码]</a>
		<a href="./auth/Login.let?action=logout" title="退出系统" class="dl-log-quit">[退出系统]</a>
    </div>
</div>
<div class="content">
    <div class="dl-main-nav">
        <div class="dl-inform">
        	<div class="dl-inform-title">
        		<s class="dl-inform-icon dl-up"></s>
        	</div>
       	</div>
        <ul id="J_Nav"  class="nav-list ks-clear">
            <li class="nav-item dl-selected">
            	<div class="nav-item-inner nav-home">系统管理</div>
            </li>
			<li class="nav-item dl-selected">
				<div class="nav-item-inner nav-order">业务管理</div>
			</li>
        </ul>
    </div>
    <ul id="J_NavContent" class="dl-tab-conten">

    </ul>
</div>
<script type="text/javascript" src="Shell/assets/js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="Shell/assets/js/bui-min.js"></script>
<script type="text/javascript" src="Shell/assets/js/common/main-min.js"></script>
<script type="text/javascript" src="Shell/assets/js/config-min.js"></script>     
<script>
    BUI.use('common/main',function(){
    	
    	//构建页面上方的系统标签 begin
    	var obj = $.ajax({url:"./auth/FunctionManage.let?action=getJSONFunctionTreeByProject&project=kylinbit",async:false});
    	var functionTree =  eval("(" + obj.responseText + ")");
    	var projectTag = '';
    	for (var i in functionTree[0].children)
    	{
    		projectTag = projectTag + '<li class="nav-item dl-selected">';
    		projectTag = projectTag + '<div class="nav-item-inner nav-home">';
    		projectTag = projectTag + functionTree[0].children[i].name;
    		projectTag = projectTag + '</div>';
    		projectTag = projectTag + '</li>';
    	}
    	$("#J_Nav").html(projectTag);
    	//构建页面上方的系统标签 end
    	
    	// 菜单树的样例 begin
        var config = [	{id:'1',
        					menu:[
        						{text:'系统管理1',
        							items:[
        								{id:'2',text:'机构管理',href:'Node/index.html'},
        								{id:'3',text:'角色管理',href:'Role/index.html'},
        								{id:'4',text:'用户管理',href:'User/index.html'},
        								{id:'6',text:'菜单管理',href:'Menu/index.html'}]
        						},
        						{text:'系统管理2',
        							items:[
        								{id:'22',text:'机构管理',href:'Node/index.html'},
        								{id:'23',text:'角色管理',href:'Role/index.html'},
        								{id:'24',text:'用户管理',href:'User/index.html'},
        								{id:'26',text:'菜单管理',href:'Menu/index.html'}]
        						}
        					]
        				},
        				{id:'7',
        					homePage : '9',
        					menu:[
        						{text:'业务管理',
        							items:[
        								{id:'9',text:'查询业务',href:'Node/index.html'}
        							]
        						}
        					]
        				}
        			];
     	// 菜单树的样例 end
    	
     	//构建菜单树 begin
     	function createMenuTree(node){
     		var menuTree =  {}; 
    		if (node.level=='1'){
    			
    		}
     		for (var i in tree){
     			if (tree[i].level='3')
     		}
     		return menuTree;
     	}
        
        for (var i in functionTree[0].children)
        {
        	menuTree[i].id = functionTree[0].children[]
        } 
         var field = fields[i];
          if(field.searchCondition != undefined && $('#search'+field.name).val() != ''){
           param["search."+field.name]=$('#search'+field.name).val();
          }
         }
        new PageUtil.MainPage({
            modulesConfig : config
        });
    });
</script>
<div style="text-align:center;">
<p>本系统由梁东、毛琰设计，古宏健二次开发！未经允许禁止使用！</p>
</div>
</body>
</html>